package com.loanapp.server.user.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Administrator on 2017/7/16.
 */

@SpringBootApplication
@EnableDiscoveryClient     //通过该注解，实现服务发现，注册
@ComponentScan(basePackages={"com.loanapp.server.user","com.loanapp.base.database"})
@MapperScan(basePackages = "com.loanapp.server.user.provider.mapper")
public class UserProviderApplication {

    public static void main(String args[]){
        SpringApplication.run(UserProviderApplication.class, args);
    }
}
